
class Person {
    // 成员属性; 声明成员属性
    name: string = ''
    age: number = 0

    constructor(name: string, age: number) {
        this.name = name
        this.age = age
    }
}

const p1 = new Person('lyy', 25)

const p2 = new Person('kobe', 33)

export { }